package com.un.ebs.core.sensitive;

import com.un.ebs.core.util.StringUtils;

public class SensitiveUtil {


    public static String mobile(String mobile) {
        if (StringUtils.isNullOrEmpty(mobile)) {
            return "";
        }
        return mobile.replaceAll("(\\d{3})\\d{4}(\\d{4})","$1****$2");
    }
}
